<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddOrderFinishAt extends Migrator
{
    public function up()
    {
        //订单添加完成时间
        $this->table('coupon_order')
            ->addColumn("order_finish_at","datetime",['null' => true,'comment'=>"订单完成时间（第三方结算）"])
            ->update();
    }

    public function down()
    {

        $this->table('coupon_order')
            ->removeColumn('order_finish_at');

    }
}
